﻿using System.Collections.Generic;
using Yun.Interface;
using Yun.Site.Response;

namespace Yun.Site.Request
{
    /// <summary>
    /// 刷新视频上传的凭证
    /// yun.aliyun.vod.refresh.uploadvideo
    /// </summary>
    public class RefreshUploadVideoRequest:ITopRequest<RefreshUploadVideoResponse>
    {
        /// <summary>
        /// 视频ID
        /// </summary>
        public string VideoId { get; set; }

        public string GetApiName()
        {
            return "yun.aliyun.vod.refresh.uploadvideo";
        }

        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"videoid",VideoId}
            };

            return parameters;
        }

        public void Validate()
        {
        }
    }
}
